Fixed res
Added sticky parameters
compres is no longer external due to makeres taking over critical
functionality