Miley Cyrus has been granted a new restraining order against Jason Luis Rivera. Rivera, 40, is currently serving 18 months in jail for trespassing on Cyrus' property.

According to TMZ, Cyrus filed for the restraining order on Oct. 30 against Rivera. On Sept. 8, Rivera was found hiding in bushes on Cyrus' Los Angeles property, "armed" with a pair of scissors. He was arrested and charged for resisting arrest and trespassing. Rivera had climbed a fence in order to get on the property, reports the San Francisco Chronicle.

At the time of the arrest, Rivera had said to a reporter from a local TV station, "I am friends with Miley Cyrus. I am. She’s my wife. Me and Miley have been friends for five years.”

Neither Cyrus or her fiance, Liam Hemsworth, were at the Los Angeles home at the time of the event. According to the San Francisco Chronicle, Rivera pleaded not guilty,  was convicted and sentenced to 18 months in jail.

Rivera is currently serving his term and could be released early. Cyrus filed the restraining order preemptively before Rivera leaves jail, reports TMZ. The temporary restraining order requires Rivera to stay at least 1,000 yards away from Cyrus at all times. In a previous TMZ story covering the Rivera arrest, Joshua Geller, deputy city attorney, said “I advised [Cyrus'] legal team to get a restraining order immediately.”

The 18-month sentence for Rivera is the maximum he can serve for the crimes. There is another hearing set for later in the month that will determine if the temporary restraining order will be changed to a permanent restraining order, notes TMZ.