Fixed getWarp function
Added setwarp functionality