Cleaned up compile functions.